const page = path => `${BASEDIR}${path}`; // 统一页面路径
const api = path => `${API_PREFIX}${path}`;  // 统一api路径

// 页面
export const NOTFOUND = page('/404');
export const FORBIDDEN = page('/403');
export const HOME = page('/');
export const LOGIN = page('/login');
export const ABOUT = page('/about');
export const AGREEMENT = page('/agreement');
export const RIGHT = page('/right');
export const MESSAGE = page('/message');
export const ACCOUNT = page('/account');


// API 接口
export const VALIDATE = api('/app/member/selectMemberById'); // 校验用户是否登录
export const TO_LOGIN_PHONE = api('/app/login/registerCode'); // 手机验证码登录
export const TO_LOGIN_PWD = api('/app/login/registerCode'); // 账号密码登录
export const QUERY_LOGIN_QRCODE = api('/app/login/wxLoginBindQrCode'); // 获取登录二维码
export const QUERY_LOGIN_QRCODE_STATUS = api('/app/login/wxQrCodeLogin'); // 轮询二维码状态
export const QUERY_OPENID = api('/app/login/getOpenId'); // 根据code获取openId
export const TO_LOGIN_OPENID = api('/app/login/wxOpenIdLogin'); // 公众号openId登录
export const TO_LOGOUT = api('/app/logout'); // 注销登录
export const SEND_SMS = api('/app/login/sendMsg'); // 发送验证码
export const GET_IMAGE_CAPTCHA = api('/app/login/captcha'); // 获取图形验证码
export const BIND_PHONE = api('/app/login/bindWxOpenPhone'); // 绑定手机
export const REFRESH_TOKEN_URL = api('/app/refresh_token'); // 刷新token
export const UPLOAD_FILE_OSS = api('/app/file/normal'); // 上传图片
export const GET_FILE_STREAM = api('/app/file/image'); // 下载图片

